package demo1;

class Base {
    public int a = 9;
    public int b = 1;
    public void method() {
        System.out.println("Base::method()");
    }
}
class Derived extends Base {
    public int a = 199;
    public int c = 2;
    public void method2() {
        System.out.println(super.a);
    }
}

public class Test2 {
    public static void main(String[] args) {
        Derived derived = new Derived();
        derived.method2();
    }
}
